/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.deployment.servicoimpl;

import br.com.deployment.entidade.tramite.Situacao;
import br.com.deployment.interfaces.SituacaoDaoIn;
import br.com.deployment.servico.SituacaoServico;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;

/**
 *
 * @author roniere
 */
@Stateless
@LocalBean
public class SituacaoServicoImpl implements SituacaoServico{

    @EJB
    SituacaoDaoIn situacaoDao;
    
    @Override
    public void save(Situacao entity) {
        situacaoDao.save(entity);
    }

    @Override
    public void delete(Situacao entity) {
        situacaoDao.delete(entity);
    }

    @Override
    public Situacao update(Situacao entity) {
        return situacaoDao.update(entity);
    }

    @Override
    public Situacao find(Long entityID) {
        return situacaoDao.find(entityID);
    }

    @Override
    public List<Situacao> findAll() {
        return situacaoDao.findAll();
    }

    @Override
    public List<Situacao> find(Situacao entity) {
        return situacaoDao.find(entity);
    }
    
}
